import { request} from "../utils/request"

export const getProductCategories =()=>{
	return request.get("/productCategory",{
		params:{
			page:1,
			pageSize: 9999
		}
	})
}
export const getSpus =(params)=>{
	return request.get("/spu",{
		params:{
			page:1,
			pageSize: 9999, 
			...params
		}
	})
}

export const getSpu =(_id)=>{
	return request.get(`/spu/${_id}`)
}